<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../5.19/vue.js"></script>
</head>
<body>
    <div id="app">
        <div id="shijia" v-on:click="doPar">
            <button v-on:click="ToThis">事件冒泡</button>
            <button v-on:click.stop="ToThis">组织事件冒泡</button>
        </div>
    </div>
</body>
<script>
    var vm=new Vue({
        el:"#app",
        methods:{
            ToThis(){
                console.log("只要我被点击的元素事件")
            },
            doPar(){
                console.log("我是父类方法")
            }
        }
    })
</script>
</html>